﻿using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.UI;

public class DemoMain : MonoBehaviour
{
    public RawImage ImgAltals;
    public RawImage ImgSng;

    // Start is called before the first frame update
    void Start()
    {
        DynamicAtlasManager.SetTexture("t2", "Assets/ResPickUp/t2.bytes", (val)=> {

            ImgSng.texture = val.Texture;
        });

        DynamicAtlasManager.SetTexture("t1", "Assets/ResPickUp/t1.bytes", (val) => {

            ImgAltals.texture = val.MainTexture;
        });
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
